#ifndef ENGINE_SERVICE_H
#define ENGINE_SERVICE_H

#include <utils\logger.h>
#include <interface\engine_interface.h>

namespace engine
{
	class engine_service: public engine_interface
	{
	public:
		engine_service();
		void set_speed(uint16_t value);
		uint16_t current_speed() const;

	private:
		volatile uint16_t speed_;
		volatile uint16_t current_speed_;
		enum { engine_pwm_pin = 10 };
		utils::logger logger;
	};
}
#endif /* ENGINE_SERVICE_H */